//
//  CCSpotLight.h
//  GameProject
//
//  Created by Blair Trusler on 18/03/2012.
//  Copyright (c) 2012 Blair Trusler. All rights reserved.
//
//  Code developed by SuperSuRaccoon:
//  http://www.supersuraccoon-cocos2d.com/2011/09/09/spot-light-demo/

#import "GameHeader.h"

#import "cocos2d.h"

@interface CCSpotLight : CCSprite {

	CCRenderTexture *renderTexture;
	float spotLightRadius;
	ccColor4B renderColor;
}

+(id) initWithRenderTexture:(CCRenderTexture *) texture
			spotLightRadius:(float)radius
				renderColor:(ccColor4B)color;

-(id) initWithRenderTexture:(CCRenderTexture *) texture
			spotLightRadius:(float)radius
				renderColor:(ccColor4B)color;
-(void) tick: (ccTime) dt;
-(void) spreadOutAndRemove;

@property(nonatomic, retain) CCRenderTexture *renderTexture;
@property(nonatomic) float spotLightRadius;
@property(nonatomic) ccColor4B renderColor;

@end
